home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•The School House•
/
QuizMaster v.10 •••
/
QuizMaster V1.0
/
QuizMaster V1.0.rsrc
/
CODE_10025_DrawPicture.txt
< prev
next >
Wrap
Text File
|
1988-10-21
|
4KB
|
68 lines
# near model CODE resource
# this CODE claims to have no jump table entries (but starts at 0008)
00000000 2C4F movea.l A6, A7
00000002 4E54 FFF0 link A4, -0x0010
00000006 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
0000000A 0C40 0004 cmpi.w D0, 0x4
0000000E 6600 00B0 bne +0xB2 /* 000000C0 */
00000012 2952 FFF4 move.l [A4 - 0xC], [A2]
00000016 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
0000001A 0C40 0000 cmpi.w D0, 0x0
0000001E 6700 0028 beq +0x2A /* 00000048 */
00000022 0C40 0001 cmpi.w D0, 0x1
00000026 6700 003E beq +0x40 /* 00000066 */
0000002A 0C40 0003 cmpi.w D0, 0x3
0000002E 6600 0090 bne +0x92 /* 000000C0 */
00000032 2F2C FFF4 move.l -[A7], [A4 - 0xC]
00000036 206C FFF4 movea.l A0, [A4 - 0xC]
0000003A A9A2 syscall LoadResource
0000003C A029 syscall HLock
0000003E 2F2C FFF4 move.l -[A7], [A4 - 0xC]
00000042 2F0A move.l -[A7], A2
00000044 4EFA 006C jmp [PC + 0x6C /* 000000B2 */]
label00000048:
00000048 2F2C FFF4 move.l -[A7], [A4 - 0xC]
0000004C 206C FFF4 movea.l A0, [A4 - 0xC]
00000050 A9A2 syscall LoadResource
00000052 A029 syscall HLock
00000054 2F2C FFF4 move.l -[A7], [A4 - 0xC]
00000058 266C FFF4 movea.l A3, [A4 - 0xC]
0000005C 2653 movea.l A3, [A3]
0000005E 486B 0002 pea.l [A3 + 0x2]
00000062 4EFA 004E jmp [PC + 0x4E /* 000000B2 */]
label00000066:
00000066 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
0000006A 0C40 0003 cmpi.w D0, 0x3
0000006E 6600 0050 bne +0x52 /* 000000C0 */
00000072 2952 FFF8 move.l [A4 - 0x8], [A2]
00000076 2F2C FFF4 move.l -[A7], [A4 - 0xC]
0000007A 206C FFF4 movea.l A0, [A4 - 0xC]
0000007E A9A2 syscall LoadResource
00000080 A029 syscall HLock
00000082 2F2C FFF4 move.l -[A7], [A4 - 0xC]
00000086 266C FFF4 movea.l A3, [A4 - 0xC]
0000008A 2653 movea.l A3, [A3]
0000008C 4284 clr.l D4
0000008E 4285 clr.l D5
00000090 3A2B 0006 move.w D5, [A3 + 0x6]
00000094 9A6B 0002 sub.w D5, [A3 + 0x2]
00000098 DA52 add.w D5, [A2]
0000009A 3945 FFFC move.w [A4 - 0x4], D5
0000009E 3A2B 0008 move.w D5, [A3 + 0x8]
000000A2 9A6B 0004 sub.w D5, [A3 + 0x4]
000000A6 DA6A 0002 add.w D5, [A2 + 0x2]
000000AA 3945 FFFE move.w [A4 - 0x2], D5
000000AE 486C FFF8 pea.l [A4 - 0x8]
label000000B2:
000000B2 A8F6 syscall DrawPicture
000000B4 206C FFF4 movea.l A0, [A4 - 0xC]
000000B8 A02A syscall HUnlock
000000BA 4E5C unlink A4
000000BC 7000 moveq.l D0, 0x00
000000BE 4E75 rts
label000000C0:
000000C0 343C 000D move.w D2, 0xD /* '\r' */
000000C4 7000 moveq.l D0, 0x00
000000C6 2E4E movea.l A7, A6
000000C8 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]